package com.xyzq.cgate.common.utils;


import org.springframework.util.DigestUtils;

/**
 * @Description:
 * @author chenchen
 * @date 2019/6/26 13:57
 */
public class Md5Util {

    public static String getMD5(String str, String key) {
        String base = str.concat(key);
        String md5 = DigestUtils.md5DigestAsHex(base.getBytes());
        return md5;
    }


}
